package com.muyan.singleton.v1;

/**
 * @Author: YLTDMenglc
 * @Date: 2019/6/11
 * @Time: 13:26
 * @Description: 懒汉模式 1，可以延迟加载，但线程不安全。
 */
public class Sinleton1 {

    private static Sinleton1 sinleton;

    private Sinleton1() {

    }

    public static Sinleton1 getInstance() {
        if (sinleton == null) {
            sinleton = new Sinleton1();
        }
        return sinleton;
    }
}
